import request from '@/utils/request'

export const getDataPlnel = () => {
  return request.get('/advise/search/info')
}

// 获取图表数据

export const getTable = ({ page, size, adviseTime, adviseType, userPhone }) => {
  return request.post('/advise/search/one', null, {
    params: {
      adviseTime,
      adviseType,
      page,
      size,
      userPhone

    }
  })
}

// 获取详情
export const getDetail = (id) => {
  return request.get('/advise/detail', {
    params: {
      id: id
    }
  })
}

// 导出
export const daochu = ({ listId, timeZone }) => {
  return request.get('/advise/export', {
    params: {
      listId,
      timeZone
    },
    responseType: 'blob'
  })
}
